package com.youlai.system.mapper;

import com.youlai.system.model.entity.AttendanceSetting;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 只茂瑞
 * @since 2024-05-30
 */
@Mapper
public interface AttendanceSettingMapper extends BaseMapper<AttendanceSetting> {

    @Select("select count(*) from attendance_setting where department_id = #{departmentId}")
    Integer countByDepartmentId(Integer departmentId);


    boolean updateAttendanceSetting(AttendanceSetting attendanceSetting);
}
